package com.ruleengine.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import lombok.extern.slf4j.Slf4j;

/**
 * @author lianghanwei on 2024/3/15
 */
@SpringBootConfiguration
//@SpringBootApplication
//@Configuration
@EnableAutoConfiguration
@ComponentScan(basePackageClasses = RuleEngineApp.class,
    basePackages = {
        "com.ruleengine.db",
        "com.ruleengine.admin",
        "com.ruleengine.coordinator",
        "com.ruleengine.worker"
})
@Slf4j
public class RuleEngineApp {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(RuleEngineApp.class, args);
    }
}